using UnityEngine;
using UnityEngine.InputSystem;


/// <summary>
/// 
/// </summary>
public class CTRPlayer : MonoBehaviour
{
    private MovementComponent _movement;
    private InputHandler _input;




    void Awake()
    {
        _movement = GetComponent<MovementComponent>();
        _input = GetComponent<InputHandler>();

        this._input.OnMove += (Vector3 forward) => this._movement.MoveAndFaceMovementDirection(forward);
    }
}
